<template>
    <div id="login">
        <!-- 顶部logo -->
        <div class="login_one_box">
            <img src="../assets/login/loginLogo.png" />
        </div>
        <!-- 底部背景 -->
        <div class="  ">
            <img class="login_one_bg sc" src="../assets/login/l4.png" />
        </div>

        <!-- 左上圆动态 -->
        <div class="login_two_conter">
            <!-- 静态 -->
            <div id="loader2">
                <img
                    class="login_two_conter_three two"
                    src="../assets/login/l5.21.png"
                />
            </div>

            <img class="login_two_conter_one" src="../assets/login/l5.31.png" />
            <div id="loader3">
                <img
                    class="login_two_conter_two three"
                    src="../assets/login/l5.11.png"
                />
            </div>
        </div>

        <!-- 底部图标 -->
        <img class="login_three_img_one" src="../assets/login/l5.4.png" />

        <!-- 右边表格 -->
        <div class="login_four_box">
            <img class="login_four_img" src="../assets/login/l6.png" />

            <!-- 内容 -->
            <div class="login_four_text">
                <p>用户登陆</p>

                <div class="login_four_dibu">
                    <div class="login_four_input">
                        <img src="../assets/login/l7.2.png" />
                        <input
                            placeholder="请输入用户名"
                            type="text"
                            id="userName"
                            v-model="userName"
                        />
                    </div>

                    <div class="login_four_input">
                        <img src="../assets/login/l7.1.png" />
                        <input
                            placeholder="请输入密码"
                            name="pass"
                            id="userPassWord"
                            type="password"
                            v-model="userPassWord"
                        />
                    </div>
                </div>
                <div
                    class="login_four_input"
                    style="margin-top: 10px; margin-bottom: 20px"
                >
                    <el-checkbox
                        v-model="checked1"
                        label="记住密码"
                        size="large"
                    />
                </div>
                <div class="login_four_button">
                    <button
                        type="button"
                        @keyup.enter.native="_Submit"
                        @click="_Submit()"
                    >
                        登录
                    </button>
                </div>
            </div>
        </div>
    </div>
    <div
        style="
            position: fixed;
            bottom: 20px;
            left: 0;
            width: 100vw;
            text-align: center;
            font-size: 14px;
            color: rgb(0, 238, 255);
        "
    >
        
    </div>
</template>

<script setup>
import { ref } from "vue";
import { useRouter } from "vue-router";
import { ElMessage } from "element-plus";
import $fetch from "../utils/request";
const $router = useRouter();
let userName = ref("");
let userPassWord = ref("");

let checked1 = ref(false);
if (userName.value = localStorage.getItem("userName")) {
    userName.value = localStorage.getItem("userName");
    userPassWord.value = localStorage.getItem("password");
    checked1.value = true;
}
document.onkeydown = (e) => {
    if (e.keyCode === 13&&location.href.indexOf("login") !== -1) {
        _Submit();
    }
};

async function _Submit() {
    var m_val = {
        username: userName.value,
        password: userPassWord.value,
    };
    if (
        (userName.value && userPassWord.value) ||
        localStorage.getItem("token")
    ) {
        $fetch(
            "/user/login",
            {
                username: userName.value,
                password: userPassWord.value,
            },
            "post"
        ).then((red) => {
            console.log(red);
            if (red.code == 200) {
                ElMessage({
                    type: "success",
                    message: "登录成功！",
                });
                localStorage.setItem("token", red.data.token);
                if (checked1.value) {
                    localStorage.setItem("userName", userName.value);
                    localStorage.setItem("password", userPassWord.value);
                    
                } else {
                    localStorage.removeItem("userName");
                    localStorage.removeItem("password");
                }
                setTimeout(() => {
                    $router.push({
                        name: "index",
                    });
                }, 100);
            }else{
                ElMessage.error(red.message);
            }
        });
    }

    // if (
    //     (userName.value == "admin" && userPassWord.value == "admin+123") ||
    //     localStorage.getItem("token")
    // ) {
    //     ElMessage({
    //         type: "success",
    //         message: "登录成功！",
    //     });
    //     if (checked1.value) {
    //          localStorage.setItem("token", "******");
    //         localStorage.setItem("userName", "admin");
    //     } else {
    //         localStorage.removeItem("userName");
    //         localStorage.removeItem("token");
    //     }
        
    //     setTimeout(() => {
    //         $router.push({
    //             name: "index",
    //         });
    //     }, 100);
    // } else {
    //     ElMessage.error("请输入正确的用户名和密码！");
    // }
}
</script>
<style scoped>
* {
    margin: 0;
    padding: 0;
    font-family: "微软雅黑";
    -moz-box-sizing: border-box;
    /*Firefox3.5+*/
    -webkit-box-sizing: border-box;
    /*Safari3.2+*/
    -o-box-sizing: border-box;
    /*Opera9.6*/
    -ms-box-sizing: border-box;
    /*IE8*/
    box-sizing: border-box;
}

body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin: 0px;
    width: 100%;
    min-width: 1400px;
    max-width: 100%;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    font-weight: normal;
}

ol,
ul,
li {
    list-style: none;
}

button {
    outline: none;
}
/* 清除浮动*/

.am-fl {
    float: left;
}

.am-fr {
    float: right;
}

.am-cf:after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.am-cf {
    zoom: 1;
}
/* 最小宽度 */

.min_width {
    width: 100%;

    min-width: 1200px;

    max-width: 100%;
}
/**  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  *  */

.user-center {
    margin: 0 auto;
    width: 20%;
    color: white;
    margin-top: 20px;
}
.user-center:hover {
    cursor: pointer;
}
.login_one_bg {
    width: 100%;
    display: block;
    height: auto;
}
/* 左上角动态 */

.login_two_conter {
    max-width: 804px;
}

.login_two_conter_one {
    width: 20%;
    height: auto;
    z-index: 99;
    position: absolute;
    top: 24%;
    left: 18%;
}

.login_two_conter_two {
    width: 14%;
    height: auto;
    z-index: 2;
    position: absolute;
    top: 28%;
    left: 20.4%;
    display: block;
    margin: 0 auto;
}

.login_two_conter_three {
    width: 40.5%;
    height: auto;
    z-index: 0;
    position: absolute;
    top: 2%;
    left: 8%;
}
/* 底部图标 */

.login_three_img_one {
    position: absolute;
    bottom: 0%;
    left: 7%;
    width: 43%;
    height: auto;
}

.login_one_box {
    position: absolute;
    top: 30px;
    right: 11%;
    z-index: 99;
}

/* .login_one_box img {
    width: 74%;
} */
/* 右边表格 */

.login_four_box {
    position: absolute;
    right: 8%;
    top: 24%;
}

.login_four_img {
    width: 74%;
    display: block;
    margin: 0 auto;
}

.login_four_text {
    position: absolute;
    top: 38px;
    left: 0;
    width: 100%;
}

.login_four_text p {
    font-size: 18px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 6px;
    text-align: center;
    padding-top: 24px;
    padding-bottom: 30px;
}

.login_four_input {
    width: 280px;
    display: block;
    margin: 0 auto;
    position: relative;
}

.login_four_input input {
    width: 280px;
    height: 38px;
    background-color: rgba(17, 113, 180, 0.35);
    display: block;
    margin: 0 auto;
    border: 1px solid #286780;
    padding-left: 34px;
    color: #fff;
    transition: all 0.2s;
}

.login_four_input input:focus {
    outline: none;
}

.login_four_input input:active {
    border: 1px solid #1a90f9;
}

.login_four_input img {
    position: absolute;
    top: 10px;
    left: 8px;
    width: 18px;
    height: 18px;
}

.login_four_input input::-webkit-input-placeholder {
    /* Edge */
    color: #fff;
}

.login_four_input input:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #fff;
}

.login_four_input input::placeholder {
    color: #fff;
}

.login_four_input input:focus {
    border: 1px solid #41bdf9;
}

.login_four_input {
    margin-bottom: 36px;
}

.login_four_dibu .login_four_input:last-child {
    margin-bottom: 0;
}

.login_four_button {
    width: 280px;
    display: block;
    margin: 0 auto;
}

.login_four_button button {
    border: 0;
    background-color: #35aff9;
    /* 浏览器不支持时显示 */
    background-image: linear-gradient(#42bef9, #0679f9);
    color: #fff;
    width: 100%;
    height: 38px;
    font-size: 16px;
    color: #fff;
    letter-spacing: 4px;
    transition: all 0.3s;
    padding: 0;
    cursor: pointer;
}

/* 当页面小于1920时 */
@media screen and (max-width: 1920px) {
    .login_four_img {
        width: 85%;
    }
    .login_four_text p {
        font-size: 20px;
        padding-top: 36px;
    }
    .login_four_input {
        width: 340px;
    }
    .login_four_input input {
        width: 340px;
    }
    .login_four_button {
        width: 340px;
    }

    .login_two_conter_one {
        width: 20%;
        height: auto;
        z-index: 99;
        position: absolute;
        top: 24%;
        left: 18%;
    }

    .login_two_conter_two {
        width: 14%;
        height: auto;
        z-index: 2;
        position: absolute;
        top: 29%;
        left: 20.4%;
        display: block;
        margin: 0 auto;
    }

    .login_two_conter_three {
        width: 41%;
        height: auto;
        z-index: 0;
        position: absolute;
        top: 2.8%;
        left: 7.8%;
    }
    .login_four_box {
        right: 12%;
    }
    /* .login_one_box img {
        width: 83%;
    } */
}
/* 当页面小于1679时 */
@media screen and (max-width: 1679px) {
    .login_two_conter_three {
        width: 47.5%;
        top: 0%;
        left: 5%;
    }
    .login_two_conter_one {
        width: 22%;
        top: 23.4%;
        left: 17.4%;
    }
    .login_two_conter_two {
        width: 15%;
        top: 28.1%;
        left: 20.4%;
    }

    .login_four_img {
        width: 74%;
    }
    .login_four_text p {
        font-size: 18px;
        padding-top: 24px;
    }
    .login_four_input {
        width: 280px;
    }
    .login_four_input input {
        width: 280px;
    }
    .login_four_button {
        width: 280px;
    }
}
/* 当页面小于1440时 */
@media screen and (max-width: 1440px) {
    .login_two_conter_one {
        width: 22%;
        height: auto;
        top: 24.6%;
        left: 18.4%;
    }
    .login_two_conter_three {
        width: 47.5%;
        top: 0%;
        left: 6%;
    }
    .login_two_conter_two {
        width: 15%;
        top: 30%;
        left: 21.5%;
    }

    .login_four_img {
        width: 74%;
    }
    .login_four_text p {
        font-size: 18px;
        padding-top: 24px;
    }
    .login_four_input {
        width: 280px;
    }
    .login_four_input input {
        width: 280px;
    }
    .login_four_button {
        width: 280px;
    }
}
/* 当页面小于1199时 */
@media screen and (max-width: 1199px) {
    .login_two_conter_three {
        width: 47.5%;
        top: 3.8%;
        left: 5.4%;
    }
    .login_four_box {
        right: 0;
    }

    .login_two_conter_one {
        width: 23%;
        top: 23.4%;
        left: 17.4%;
    }
    .login_two_conter_two {
        width: 16%;
        top: 28%;
        left: 20.3%;
    }

    .login_four_img {
        width: 74%;
    }
    .login_four_text p {
        font-size: 18px;
        padding-top: 24px;
    }
    .login_four_input {
        width: 280px;
    }
    .login_four_input input {
        width: 280px;
    }
    .login_four_button {
        width: 280px;
    }
}

/* 当页面小于1000时 */
@media screen and (max-width: 1000px) {
    .login_two_conter_three {
        width: 47.5%;
        top: 11.8%;
        left: 5.4%;
    }
    .login_four_box {
        right: 0;
    }

    .login_two_conter_two {
        width: 15%;
        top: 32.4%;
        left: 20.5%;
    }
    .login_two_conter_one {
        width: 22%;
        top: 28.4%;
        left: 17.4%;
    }

    .login_four_img {
        width: 70%;
    }
    .login_four_text p {
        font-size: 18px;
        padding-top: 20px;
    }
    .login_four_input {
        width: 260px;
    }
    .login_four_input input {
        width: 260px;
    }
    .login_four_button {
        width: 260px;
    }
    .login_four_input {
        margin-bottom: 28px;
    }
    .login_four_button button {
        margin-top: 28px;
    }
}

/* 当页面小于911时 */
@media screen and (max-width: 911px) {
    .login_two_conter_three {
        width: 47.5%;
        top: 12.8%;
        left: 5.2%;
    }
    .login_four_box {
        right: 0;
    }

    .login_two_conter_two {
        width: 15%;
        top: 32.4%;
        left: 20.5%;
    }
    .login_two_conter_one {
        width: 22%;
        top: 28.4%;
        left: 17.4%;
    }

    .login_four_img {
        width: 65%;
    }
    .login_four_text p {
        font-size: 18px;
        padding-top: 14px;
        padding-bottom: 18px;
    }
    .login_four_input {
        width: 250px;
    }
    .login_four_input input {
        width: 250px;
    }
    .login_four_button {
        width: 250px;
    }
    .login_four_input {
        margin-bottom: 28px;
    }
    .login_four_button button {
        margin-top: 28px;
    }
}

@media screen and (max-width: 800px) {
    .login_two_conter {
        display: none;
    }

    .login_four_box {
        left: 18%;
        top: 17%;
    }

    .login_four_img {
        width: 65%;
    }
    .login_four_text p {
        font-size: 20px;
        padding-top: 34px;
        padding-bottom: 30px;
    }
    .login_four_input {
        width: 320px;
    }
    .login_four_input input {
        width: 320px;
    }
    .login_four_button {
        width: 320px;
    }
    .login_four_input {
        margin-bottom: 40px;
    }
    .login_four_button button {
        margin-top: 40px;
    }
}

@media screen and (max-width: 500px) {
    .login_two_conter {
        display: none;
    }

    .login_four_box {
        left: 0%;
        top: 20%;
    }

    .login_four_img {
        width: 80%;
    }
    .login_four_text p {
        font-size: 20px;
        padding-top: 34px;
        padding-bottom: 26px;
    }
    .login_four_input {
        width: 280px;
    }
    .login_four_input input {
        width: 280px;
    }
    .login_four_button {
        width: 280px;
    }
    .login_four_input {
        margin-bottom: 30px;
    }
    .login_four_button button {
        margin-top: 30px;
    }
}
/* 底部备案 */

.login_sjkf_diple {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
}
.login_ba_one {
    display: flex;
    justify-content: center;
}
.login_ba_one p {
    font-size: 14px;
    color: #86b6e8;
}
.login_ba_one span {
    font-size: 14px;
    color: #86b6e8;
    padding-left: 14px;
}
.login_ba_one a {
    background-color: transparent;
    border: 0;
    color: #86b6e8;
}
html {
    background-color: #333;
}

h1 {
    font-family: Marvel;
    font-size: 50pt;
    color: #fff;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
}

.loader {
    /* position: relative;
    width: 50px;
    height: 50px;
    margin: 10px */
}

.loader-container {
    display: inline-block;
    height: 150px;
    width: 200px;
}

.container-of-loaders {
    width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 810px) {
    .container-of-loaders {
        width: 600px;
    }
    .no-7 {
        margin-left: 100px;
    }
}

@media screen and (max-width: 623px) {
    .container-of-loaders {
        width: 400px;
    }
    .no-7 {
        margin-left: 0;
    }
}

@media screen and (max-width: 423px) {
    .container-of-loaders {
        width: 200px;
    }
}

.one {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: loader1Animation 1s ease-in-out infinite;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
}

.one:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 19px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #333;
}

@keyframes loader1Animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.two {
    animation: loader2Animation 60s linear infinite;
    margin-left: auto;
    margin-right: auto;
    transform-origin: 48.9% 54.61%;
}

@keyframes loader2Animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.three {
    animation: loader3Animation 60s linear infinite;
    margin-left: auto;
    margin-right: auto;
}

@keyframes loader3Animation {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

.four {
    margin-top: 70px;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    animation: loader4Animation 1s linear infinite;
    margin-left: 80px;
}

@keyframes loader4Animation {
    0% {
        background-color: rgba(255, 255, 255, 1);
        box-shadow: 15px 0 0 0 rgba(255, 255, 255, 0.67),
            30px 0 0 0 rgba(255, 255, 255, 0.33);
    }
    17% {
        background-color: rgba(255, 255, 255, 0.67);
        box-shadow: 15px 0 0 0 rgba(255, 255, 255, 1),
            30px 0 0 0 rgba(255, 255, 255, 0.67);
    }
    33% {
        background-color: rgba(255, 255, 255, 0.33);
        box-shadow: 15px 0 0 0 rgba(255, 255, 255, 0.67),
            30px 0 0 0 rgba(255, 255, 255, 1);
    }
    50% {
        background-color: rgba(255, 255, 255, 0);
        box-shadow: 15px 0 0 0 rgba(255, 255, 255, 0.33),
            30px 0 0 0 rgba(255, 255, 255, 0.67);
    }
    67% {
        background-color: rgba(255, 255, 255, 0.33);
        box-shadow: 15px 0 0 0 rgba(255, 255, 255, 0),
            30px 0 0 0 rgba(255, 255, 255, 0.33);
    }
    83% {
        background-color: rgba(255, 255, 255, 0.67);
        box-shadow: 15px 0 0 0 rgba(255, 255, 255, 0.33),
            30px 0 0 0 rgba(255, 255, 255, 0);
    }
    100% {
        background-color: rgba(255, 255, 255, 1);
        box-shadow: 15px 0 0 0 rgba(255, 255, 255, 0.67),
            30px 0 0 0 rgba(255, 255, 255, 0.33);
    }
}

.five {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: solid #fff 4px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 23px;
}

.five:before {
    content: "";
    height: 42px;
    width: 4px;
    position: absolute;
    left: 48px;
    top: 10px;
    background: #fff;
    border-radius: 2px;
    transform-origin: 2px 40px;
    animation: loader5Animation 2s linear infinite;
}

.five:after {
    content: "";
    height: 27px;
    width: 4px;
    position: absolute;
    left: 48px;
    top: 25px;
    background: #fff;
    border-radius: 2px;
    transform-origin: 2px 25px;
    animation: loader5Animation 12s linear infinite;
}

@keyframes loader5Animation {
    0% {
        tranform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.six {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    animation: loader6Animation 1s linear infinite;
    margin-left: auto;
    margin-right: auto;
    margin-top: 25px;
}

.six:before {
    content: "";
    height: 15px;
    width: 15px;
    background-color: rgba(255, 255, 255, 1);
    position: absolute;
    top: 0;
    left: 42px;
    border-radius: 50%;
}

.six:after {
    content: "";
    height: 15px;
    width: 15px;
    background-color: rgba(255, 255, 255, 0.75);
    position: absolute;
    top: 5px;
    left: 22px;
    border-radius: 50%;
}

.six span:before {
    content: "";
    position: absolute;
    top: 19px;
    left: 7px;
    width: 15px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.six span:after {
    content: "";
    position: absolute;
    top: 38px;
    left: 0;
    width: 15px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

@keyframes loader6Animation {
    0% {
        tranform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.seven {
    border: solid #fff 2px;
    width: 150px;
    height: 20px;
    border-radius: 7px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 70px;
}

.seven:before {
    content: "";
    position: absolute;
    width: 146px;
    height: 16px;
    top: 2px;
    left: 2px;
    background-color: #fff;
    border-radius: 4px;
    animation: loader7AnimationBefore 2s linear infinite;
}

.seven:after {
    content: "Loading...";
    position: absolute;
    width: 150px;
    color: #fff;
    top: -28px;
    font-family: Marvel;
    font-size: 14pt;
    text-align: center;
    animation: loader7AnimationAfter 2s linear infinite;
}

@keyframes loader7AnimationBefore {
    0% {
        width: 0;
    }
    15% {
        width: 0;
    }
    85% {
        width: 146px;
    }
    100% {
        width: 146px;
    }
}

@keyframes loader7AnimationAfter {
    0% {
        content: "Loading";
    }
    25% {
        content: "Loading.";
    }
    50% {
        content: "Loading..";
    }
    75% {
        content: "Loading...";
    }
    100% {
        content: "Loading...";
    }
}

.eight {
    animation: loader8Animation 4s linear infinite;
    margin-top: 25px;
    margin-left: auto;
    margin-right: auto;
}

.eight:before {
    width: 20px;
    height: 20px;
    content: "";
    position: absolute;
    background-color: transparent;
    top: 40px;
    left: 40px;
    border-radius: 50%;
    box-shadow: 0 -50px 0 0 rgba(255, 255, 255, 1),
        -36px -36px 0 -1px rgba(255, 255, 255, 0.875),
        -50px 0 0 -2px rgba(255, 255, 255, 0.75),
        -36px 36px 0 -3px rgba(255, 255, 255, 0.625),
        0px 50px 0 -4px rgba(255, 255, 255, 0.5),
        36px 36px 0 -5px rgba(255, 255, 255, 0.375),
        50px 0 0 -6px rgba(255, 255, 255, 0.25),
        36px -36px 0 -7px rgba(255, 255, 255, 0.125);
}

@keyframes loader8Animation {
    0% {
        tranform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#footer {
    position: relative;
    top: 4px;
    padding-bottom: 0;
    text-align: center;
    font-family: Marvel;
    font-size: 13pt;
    color: #f1f1f1;
    line-height: 1;
    width: 99%;
}

a {
    color: red;
    text-decoration: none;
    background: #f1f1f1;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 15px;
    transition: all 0.3s linear;
}

a:hover {
    color: #f1f1f1;
    background-color: red;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease-in-out;
}

.modal-box {
    background-color: transparent;
    position: absolute;
    width: 80%;
    height: 80%;
    left: 100px;
    top: 50px;
}

.close {
    position: fixed;
    width: auto;
    height: auto;
    background-color: transparent;
    border: 0;
    padding: 0;
    top: 10px;
    right: 10px;
    color: #f1f1f1;
    cursor: pointer;
}

.content {
    position: absolute;
    padding: 10px;
    background-color: #111;
    font-size: 10pt;
    font-family: "Nova Mono";
    color: #f1f1f1;
    overflow: auto;
    transition: opacity 0.3s ease-in-out;
    border-radius: 0 25px 25px 25px;
}

.content::-webkit-scrollbar {
    width: 0;
}

.content::-webkit-scrollbar-track {
    background: #111;
}

.content::-webkit-scrollbar-thumb {
    background: #666;
}

.content::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.modal-box-buttons {
    position: relative;
    max-height: 50px;
    padding: 0;
    background: transparent;
    z-index: 100;
}

.modal-box-buttons-button {
    width: 100px;
    height: 50px;
    background: #111;
    font-family: "Nova Mono";
    font-size: 20pt;
    cursor: pointer;
    margin-left: 0;
    margin-top: 0;
    border: 0;
    border-radius: 25px 25px 0 0;
    margin-right: 0;
    transition: all 0.3s ease-in-out;
    color: #f1f1f1;
}

.css {
    display: none;
}

#copy-button {
    width: 250px;
    position: absolute;
    bottom: 0;
}

#copy-button button {
    position: relative;
    width: 120px;
    height: 35px;
    font-size: 17pt;
    bottom: 0;
    letter-spacing: normal;
    padding: 0;
    border: 0;
    background-color: red;
    color: #f1f1f1;
    border-radius: 3px;
    margin: 0;
    margin-right: 5px;
    transition: box-shadow 0.2s ease-in-out, bottom 0.2s ease-in-out;
    box-shadow: 0 0 10px 1px #000;
}

#copy-button button:hover {
    box-shadow: 0 5px 40px 5px #000;
    bottom: 2px;
}

#copy-button button:active {
    box-shadow: none;
    bottom: 0;
}

#copy-message {
    font-family: Marvel;
    font-size: 15pt;
    color: #f1f1f1;
    position: fixed;
    width: 120px;
    max-width: 200px;
    bottom: 10px;
    padding: 10px;
    left: -250px;
    background-color: red;
    transition: all 0.3s ease-in-out;
    z-index: 100;
    text-align: center;
}
</style>
